
<div class="container">
    <h2 class="titulo">Blog<a class="logo-titulo" href="<?php bloginfo('url'); ?>" title="Inicio"></a></h2>
    <div class="categorias">
        <h3><a href="<?php echo get_bloginfo('url') . '/category/blog/' ?>">Categorías</a></h3>
        <hr style="margin-bottom: 10px;"/>
        <ul>
            <?php $categories = get_categories(array('child_of' => get_cat_ID('blog'), 'hide_empty' => 0)); ?>

            <?php foreach ($categories as $categoria) { ?>
                <li><a href="<?php echo get_category_link($categoria->term_id); ?>"><?php echo $categoria->name . ' (' . $categoria->count . ')'; ?></a></li>
            <?php } ?>
        </ul>
        <iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2Fel-rito%2F47970452727&amp;width=235&amp;height=400&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color&amp;header=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:235px; height:400px;" allowTransparency="true"></iframe>
    </div>

    <div class="cuerpo-blog">

        <?php if (have_posts()) : the_post() ?>
            <div class="post">
                <h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                <div class="post-imagen"><?php the_post_thumbnail('post-thumbnail'); ?></div>
                <div class="post-resumen"><?php the_content() ?></div>

                <div class="post-meta">Publicado el <?php echo get_the_date(); ?> a las <?php the_time(); ?></div>
            </div>
            <div style="height: 2px; width: 100%; background-color: grey; margin-bottom: 40px;"></div>
            <div class="comentarios">
                <?php comments_template('', true); ?>
            </div>
        <?php else : ?>
            <?php echo 'No se encontraron post en esta categoría.'; ?>
        <?php endif; ?>
    </div>

</div>

